﻿using DevExpress.XtraEditors;
using DXApplicationTangche.Utils.UC;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.dataTable.UC
{
    public partial class XtraUserControlDataTime : DevExpress.XtraEditors.XtraUserControl
    {
        public XtraUserControlDataTime(ParaDefineDTO paraDefineDTO)
        {
            InitializeComponent();
            this.dateTimePicker1.Name = paraDefineDTO.paraId;
            this.layoutControlItem1.Text = paraDefineDTO.paraName;
        }

        public override string ToString()
        {
            return this.dateTimePicker1.Value.ToString("yyyy-MM-dd");
        }
    }
}
